package com.egg.auth.entity.menu;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.egg.common.core.model.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


/**
 * <p>
 * 菜单表
 * </p>
 *
 * @author east
 * @since 2021-07-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName(value = "auth_menu")
@ApiModel(value = "Menu对象", description = "菜单表")
public class Menu extends BaseEntity {


    @ApiModelProperty(value = "父级ID")
    @TableField(value = "pid")
    private Long pid;

    @ApiModelProperty(value = "所有的上级ID; 用英文逗号,分割")
    @TableField(value = "ancestors")
    private String ancestors;

    @ApiModelProperty(value = "名称")
    @TableField(value = "name")
    private String name;

    @ApiModelProperty(value = "类型", notes = "com.egg.auth.enums.menu.MenuTypeEnum")
    @TableField(value = "type")
    private String type;

    @ApiModelProperty(value = "路径")
    @TableField(value = "path")
    private String path;

    @ApiModelProperty(value = "组件")
    @TableField(value = "component")
    private String component;

    @ApiModelProperty(value = "图标")
    @TableField(value = "icon")
    private String icon;

    @ApiModelProperty(value = "跳转")
    @TableField(value = "redirect")
    private String redirect;

    @ApiModelProperty(value = "是否隐藏")
    @TableField(value = "hidden")
    private Boolean hidden;

    @ApiModelProperty(value = "权限标识")
    @TableField(value = "perm")
    private String perm;

    @ApiModelProperty(value = "排序")
    @TableField(value = "sort")
    private Integer sort;


}
